var Sequelize = require('sequelize');
var sequelize = new Sequelize('postgres://fox:l9yus5nn@localhost:5433/fox');
console.log(sequelize);

var User = sequelize.define('user', { firstName: { type: Sequelize.STRING },
lastName: { type: Sequelize.STRING } });

// force: true will drop the table if it already exists
User.sync({force: true}).then(function () {
  // Table created
  return User.create({
    firstName: 'John',
    lastName: 'Hancock'
  });
});

User.findAll().then(function(users) {
  console.log(users)
});
